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
Merge pull request #7 from aljen/master

Fix clang warnings for C