consolidated IOV_MAX/UIO_MAXIOV handling per GLib + legacy behaviour for osx/ios