Fix standalone build for Java Rhino