Fix a problem that C file may be recognized as C++ file