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