fixes policy setting to be compatible with CMake versions < 2.8.11
fixed typo that broke build with C++11 features