Only use -Wno-c++11-extensions when clang is detected
Disable error that forbids builds with gcc 4.2