Fix compatibility of VersionSorter with java 1.6