api: fix compatibility of linux/in.h with netinet/in.h