Convert major and minor versions to integers for version matching