Verify that an image does not contain native code when loading if USE_COREE is not defined. Raises nice exception when loading rather than crashing due to random reasons later on. Fixes case #565179.