CMake paths updated to reduce warnings and errors
Cmake and src files updated to allow C++11 compilers to be used