Common: Remove gotos in FileUtil, and replace FILE*s with IOFiles.
VideoCommon: Remove gotos in ImageWrite.
Common: Remove goto in MemArena.