adapt pathod to netlib changes

refs mitmproxy/mitmproxy#347