Avoid Long.compare(x,y) since it's JDK7+

Actually I'll be pushing a modified PR that also addresses a few more JDK6 compat issues. So, I will make the change you suggest above (and similar for ModuleDescriptor's use of Integer.compare(x, y)), and I will include that in a new PR - along with a few other changes. I will close this one.