Big Endian specific code fixes in order to conform with