Added preprocessor defines when compiling with a c++ compiler