Multi-thread download code for Windows