Fix compile error on JDK6

Integer.compare(v1, v2) is supported from JDK7. Hive is now supporting JDK6, so Hivemall should also support JDK6.