unix, windows: detect errors in uv_ip4/6_addr