socks5-proxy won't compile under windows

compile the sample under windows is not naturaly.
I propose several modifications to get this sample functional.