Fix JRuby build.