add socks5 support

Only compile tested.