clang: give the temp file the same extension as the original file.
Makes the compiler detect the language used and we then don't have to
specify "-x c++" for example.