Fix CMake hack