Add common uv_udp_* error checking.

This makes uv_udp_* error code checking independent of the platform.