runtime: fix netbsd build

TBR=rsc
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/140220043
runtime: fix solaris netpoll

TBR=rsc
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/141030043