Fixed issues related to http client v2.5 (knife-windows #124)

Addresses https://github.com/opscode/knife-windows/issues/124.