HACK for compatibility on Mac JDK Oracle vs Apple