Fix Rubinius and JRuby