glib: fix test to not use pkg-config.