Improve cross compilation script to abort when a download fails