Fix wrong exception class name...

Reported by Junichi Oya. Thanks!!!
Add workaround for Ruby/GLib2 2.0.2 or earlier