Fix fontconfig detection for cairo on xquartz (#4617)