Disable compiler warnings in glib build for Darwin to avoid prototype errors.