resolv.h may require netinet/in.h, so try to #include that when