Declare completion code as int

Matches libcurl (it declares them as enum) and avoids casting for
difference between 32/64bit
Handle CURLM_CALL_MULTI_SOCKET when starting a transfer