C++: Rename files to be compiled as C++ to foo.cpp

Instead of using the -xc++ compiler flag.