Switch build system to CMake