Fix build in jruby