import libproxify and fix proxy-authentication handling