Updated build script to use java 8.