Fix JRuby build