gio, tests: adaptations for building with bionic libc from termux
These commits fix some compilations failures seen under the both very picky, and arguably slightly broken toolchain one gets with termux under android. Being able to build meson projects with glib as a subproject from android in a pinch is nevertheless useful.
Closes #3008 (closed)
Edited by Philip Withnall