Convert version numbers to integer values