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

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/172360043
diff --git a/ipv4/gen.go b/ipv4/gen.go
index a1d65ef..09dcd03 100644
--- a/ipv4/gen.go
+++ b/ipv4/gen.go
@@ -63,7 +63,12 @@
 	if err != nil {
 		return err
 	}
-	if err := ioutil.WriteFile("zsys_"+runtime.GOOS+".go", b, 0644); err != nil {
+	zsys := "zsys_" + runtime.GOOS + ".go"
+	switch runtime.GOOS {
+	case "freebsd", "linux":
+		zsys = "zsys_" + runtime.GOOS + "_" + runtime.GOARCH + ".go"
+	}
+	if err := ioutil.WriteFile(zsys, b, 0644); err != nil {
 		return err
 	}
 	return nil