fix compiling jruby 1.8 mode on maven, update #2233