Fix build on jruby