fix the build under 1.9 and jruby