uv-common: add error detection in inet_addr()