Add support for cURL

Some distributions/OSes (e.g. Fedora and OS X) come with curl by default but not with wget. Adding support for curl seems like a sensible thing to do.