Fix for "Timeout #0" issue on Mac platform

Per 3.0 release notes: Added: Option timeLimit (default 30s, 0 for linux). Prevents frozen upload when server fails, after timeout the upload is cancelled and the complete event fired (with “timeout” error).

This is also required on OSX, so I've fixed that here.