Print errno information in write_packet
Limit size of the iovect passed to writev in packet.c
Be more careful in case a platform doesn't define UIO_MAXIOV nor IOV_MAX