detect_compiler: set CXX_CXX11_FLAG to flag to use to enable C++11