fix __download for cygwin