build for java 6