Added CURL initialization and features check in libwsapi