install-ctl.sh ran QEMU's configure with PKG_CONFIG_PATH set to the library's pkg-config directory alone, which drops the shell's own. On a host whose libraries pkg-config finds only through that variable (NixOS, in a nix-shell with the build's dependencies), configure then found no glib-2.0 and stopped. Put the library's directory first and keep the rest.