Fix setting C++11 flags for GCC and Clang