windows: fix issues related to address families

It's all low-risk, and should fix joyent/node#4665.

@sblom, care to review?
/cc @tjanczuk