some changes to compile with mruby-1.0.0

found this cool gem, thanks for creating it,
had to make some changes to compile/work with mruby-1.0.0, hope the changes are correct, it's my first day with mruby