build: fix for freebsd, openbsd

TBR=r
CC=golang-dev
https://golang.org/cl/5505052
1 file changed