Add progress compatibility for PHP 5.5

Long story short, there was a backwards incompatible change to the
CURLOPT_PROGRESSFUNCTION callback arguments.
Merge pull request #439 from adlawson/curl-progress

Fix cURL progress callback in PHP 5.5