Create CMake option for building as c++11.