Fix compiler warning about unused local typedef
Make it work for big endian
Fix compile problem with gcc but on platforms with no 'pause'
Fix compiler warnings about unused local variable on some plaforms
Fix typo in attrib name that interfered with color space conversion