compat for mruby 1.0.0.