Changed build system to CMake