Change build system to CMake.