build: Fix allow building with OpenJDK