Fixing build on OpenJDK 8 due to new nashorn JavaScript engine