config.h fix

only inlcude C++ header if compiling C++ code