fix palette8tobgr32/palette8torgb32 on big endian