Fix build with older CMake versions