net: fix dial to raw IP networks on Windows

Also avoids platform-dependent datagram truncation in raw IP tests.
At least it's different between Windows and others.

Fixes issue 6122.

R=alex.brainman
CC=golang-dev
https://codereview.appspot.com/12843043