Added static analysis option to scons project. Fixed C++11 being enabled for C files