OSX build fix
Making sure Content-Length is sent when having body.
RFC; http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4