Fix compilation error on Java 6