Fixed build to work with JDK 8. (ra)