Add (optional) support for mapserver with CMake.

Restore optional support for libmapserver with CMake build.