fix mapdataset unloading
get a reference instead of making a new
actually, that stuff shouldn't be needed now either

since we're no longer deleting
Merge remote-tracking branch 'upstream/master' into experimental
fix textlist colours messing up

although they disappear for a frame when the selector gets resized...
figuring out why is beyond me.
fix battlestate deletion
fix stat bar flicker on power source explosions
don't try to save UFO missions in new battle
Merge remote-tracking branch 'upstream/master' into experimental
fix throw math

(double)(int / int) vs (double / double)
fix destructor order

save before rules (allow for unloading of data)
Merge remote-tracking branch 'upstream/master' into experimental
Workaround for stupid android handling of wchar_t in wcsftime()