Compare alpha and numeric segments of two versions.
The version compare algorithm is also used by RPM.
1: a is newer than b 0: a and b are the same version -1: b is newer than a