load rhino compatibility functions on Java 8