Fixup for bad -mt patch.
Safer syncing of blockchain/txqueue to state.
Linux build fix.