Fix for compilation using a c++ compiler.