Added java 8 support for travis.