build for java 7