move server's linux build system to CMake