Add SOCKS proxy utility functions.