Fixed Long.compare isn't exists on jdk6