glib: fix cross-compilation