CMake configures correctly (finally)