Partial fix for issue #5

Still broken on Perl compiled with thread support because
Net::Curl::Share is disabled.