[CMake] Don't add flags this late and don't force libc++. Error if we know the compiler doesn't support c++11.