runtime: freebsd, netbsd build fixes after reorg

R=golang-dev
CC=golang-dev
https://codereview.appspot.com/7826044