Moved build system to CMake.