Fix build with older CMake