Add missing #include <netinet/in_systm.h> and #include <netinet/in.h>.