Moved the include of netinet/ip.h into socket.c.