Fix the handling of c++11 option (CMake)