Fix compiling the project as C++ instead of C.