Use different long comparison to support older JVMs