Define G_IOV_MAX to 512 on macOS/iOS
For macOS/iOS, UIO_MAXIOV is documented in writev(2), but <sys/uio.h> only declares it if defined(KERNEL)
Inspired by a GStreamer MR by Jim Mason https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/277