Fix compilation with older CMake versions