Fix clang warnings for C

Fix for clang: warning: treating 'c' input as 'c++' when in C++ mode,
this behavior is deprecated
Move -Wall to settings and separate C & C++ flags