Some small classpath tweaks to be compatible with openJDK's api

These were some small classpath changes I found from running the Threadly unit tests within avian.

I will comment in line about each one since they are pretty random.
This is to fix a class cast issue where we can't cast to Comparable, instead we just use the hash code to sort.