Adjust netlib to mitmproxy changes

refs mitmproxy/mitmproxy#347