Add defaults for NETDB_{INTERNAL,SUCESS}.
NETDB_INTERNAL and NETDB_SUCCESS are not defined by POSIX, so some libc implementations (such as musl) do not have them. When compiling sockets contrib, check if these are defined and, if not, define them to be zero.
Tested by compiling on Alpine Linux and there are no unexpected failures in the test suite.