Disable optimizations in debug builds.
Handle network and download problems in a better way.