cxxflags should not apply to C files.  Fixes #9815.