Fix building on systems without C++ compiler.