Add CMake backwards compatibility

The build system uses CMake features that aren't all available in
early versions of the 2.8.x release series.  Add compatibility to
enable using CMake 2.8.0 if needed (e.g., Ubuntu 10.04 LTS).