CGE2: Further implement loadSprite(), fix compilation error.