Make CMake config work with older versions of CMake.