Fix for build on jruby