Fix compiling with Java 6. Integer.compare(int,int) is since Java 7.

Current version fails to compile on Java 6. According to [the docs](http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#compare%28int,%20int%29) these two are equivalent.