This makes it compatible with external glib 2.56 (rhel7/rhel8). Co-authored-by: Wouter Deconinck <wdconinc@gmail.com>