update build.sh to force java 1.6