Fixed some compile errors, since the latest version of mruby changes some methods call and parameters.