Switch to CMake
Added CXX parameter to inform CMake that it is C++