Updated CMakeLists.txt for lastest C++11 toolchain ; fixed deprecated string-to-char* conversions