Fix dependencies. Set Travis CI environment to openjdk6.