Fix .h files detected as C while project is C++, and vice versa