fix windows bugs
compatibility fixes for windows
Merge branch 'fix_windows_bugs' into fix_invalid_tcp_close