use libCURL on unix, but urlmon on windows