reset TUs on stage 2 of missions

and reduce copypasta
Enable -Wall for C++ too
fix melee

getCurrentAction() only works for player actions.
initialize that variable at once!
Fix crash on victory/defeat screens.
Fix scrollbar drawing incorrectly at small sizes.
Fixes to autosaves.
Fixed more autosave weirdness.
Fixed scientists/engineers vanishing when mod was missing.
Fixed dogfight buttons sticking.
Fixed plurality in extra strings
match ammo types when applying inventory templates
add clear inventory button
enable templ hotkeys even when buttons are hidden
ensure hover info is correct when inv items change
fix too few items made with pre-TFTD mfg rules
fix calculation for manufacturing days left
Merge pull request #885 from ajschult/Wall

Enable -Wall for C++ too
Only do HQX if it is enabled
Improve graphs performance