fix cross compiling of glib and libz