EMI: Fix TIL on Big Endian machines.
EMI: Fix TGA byte order on Big Endian machines.
Merge pull request #974 from JoseJX/BigEndian

EMI: Big endian fixes