Restore Java 1.6 compatibility, avoid static compare methods.

It turns out that java.lang.{Byte,Short,Integer,Long}.compare
is only available in 1.7. I didn't realize this and converted
older Spire code to use these. This commit removes those methods.