Fix JRuby builds