CArchive include cleanup

CArchive.h is included in many **header** files, and inclusion of "system.h" in CArchive.h leads to significant overhead.

This PR replace #include "PlatformDefs.h" with #include "system.h" in CArchive.h and fix some depends files.