Updated download.cpp to work with latest ctrulib