x/net/ipv4: fix freebsd/{386,arm}, linux/{386,arm} build

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/172360043
8 files changed