Fix CMake build