Fix savecore/loadcore functionality for MAINSIZE > 4GB.