Add support for JRuby-head