net: fix windows build

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/7392054