Make our error handling work with older GLib

Once again, we're bitten by the fact that Travis CI has GLib 2.32...

Unless that's a blessing in disguise, as it allows us to be more
compatible?