Only append -nostdinc++ for C++ source files
In C projects this fixes lots of warning output like this: warning: argument unused during compilation: '-nostdinc++' [-Wunused-command-line-argument]