Allow compiling with a C++ compiler.