fix a build on netbsd-6

ip.h requires in_systm.h here.