Get the C++ macros/conditionals right.