Extract backward compatible codes for GLib 2.32 API change