tsocks: fixes

Resolves #4564