emilpro: Workaround memory leaks in libcurl, destroy prefs/archfact

Or caused by libcurl somehow...