make it windwos compatible.

there is no other way to do it in a better way, due to the network layer
implementation in windows...