XBDateTime: add missing includes
CArchive: huge reduce of included headers by including "PlatformDefs.h" instead of "system.h"