Fix compilation against glib < 2.34.0

https://rt.cpan.org/Ticket/Display.html?id=91313