Fix compilation on GUI version. Retry download if failed