fix to build on java 6