fix build of java_modular with OpenJDK