add proxy auth support

Not sure if this actually works but this seems to be the only way to add proxy auth support.