Compile errors under Java 5