fixes to run in the latest mruby
fixes to run in the latest mruby