ENH: allow for shared build of libcurl and fix build with openssl option (ssl tested on linux and windows