socket.c: we need netinet/in.h on some platforms