LogTransport: write shouldn't do anything in case of a zero-length write

WIP: why?
LogTransportSocket: port socket specific transport classes to win32