Fix JRuby build

See travis-ci/travis-ci#1798