glib: Fix to avoid assertion dialog box on Windows
Apply upstream commit https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1415
Fixes: #247 (closed)
Apply upstream commit https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1415
Fixes: #247 (closed)