Use GLib's type for GError instead of our own