fix errors when building with java 1.6
compile with java 1.5