Improvements related to freedom-compatible interface for socks-to-rtc

I accidentally merged the last pull request (https://github.com/uProxy/uproxy-networking/pull/170) before all the comments were in, so this one will have to serve as a continuation.