wayland: fixed cross build.
glib: fixed cross build.