Update CMake script to download Qt 4.8.5 from midas. Fixes #5

Backport improvement to the download function from the 4.8.6 branch.