Fix jruby builds. See travis-ci/travis-ci#1948