MacOSXPlatform.java - Fix for ClassCastException: Object to Comparable