CMake: Fix version string comparison (by James Bigler).

 * Fix compilation on gtk+ >= 3.10, gdl >= 3.10, etc.