Fix compile task on JRuby.