Provisional workaround for undefined CMAKE_*_COMPILER_VERSION

The variables `CMAKE_*_COMPILER_VERSION` and `CMAKE_*_COMPILER_ID`
first appear in 2.8.8 (marked as "internal, subject to change");
officially supported since 2.8.10. For now, let's just issue a status
message for older CMake, and a warning for newer ones.