glib: fix cross-compilation (TODO: not there yet)