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