Avoid load state crash if kernel objects fail.
Move parts of ChunkFile into a cpp, cleanup.
Savestate tm differently for crossplat.

Especially Linux 32/64, but really all are nice.
Minor warning.
Correct savestates when dls had context saving.

It was wrong, and also they were different between 64/32 bit.
Merge pull request #4065 from unknownbrackets/savestates

Fix some savestate compatibility issues