Multi file downloader in C