Fix the build for Java 6