Big Endian epk support, misc changes