glib: Fix compilation on Darwin and use default gcc

http://hydra.nixos.org/build/12458779