Allow C++ files to end in ".cc"

The code for mapping a C file to a C++ file has turned into a giant
horrible mess and should be cleaned up.