fixes for PPC64 little endian