Fix some type errors found by mruby-clang-plugin.