Only use -Wno-c++11-extensions when clang is detected