Fixed CMake tests for C++11 functionality