When using GCC or Clang, use C++11 by default.