CMake compatibility fix