add workaround to install java 8 dependencies for Travis CI