Added C++11 flag for CMake.