unix, windows: add common uv_udp_* error checking