Backporting for older GLib 2.32.x, adding back generating of marshalling of closures