Autodetect C++11 compiler flags