Build fix for Java 6