declare h_errno only on those platforms that actually need it; it conflicts with the declaration in netdb.h on AIX