Fix CMake build system