fixes of CurlHttpClient for php 5.5+ version
Merge pull request #227 from AlexeyDsov/curlFixPhp55

fixing CurlHttpClient to work with php 5.5+