detect_compiler: set $CXX_CXX11_FLAG to the flag that enables C++11