Added (and slightly modified) a macro from the CMake wiki that compares two strings containing version numbers (like "1.4.9").