x11/cde: fix build on powerpc64le
- Merge patches from shells/ast-ksh fixing ksh93 build.
- Change endianness detection to what BYTE_ORDER points to.
The way CDE detects endianness is not correct and I got errors about running
neither BE or LE.
This still fails to build on powerpc64, so BROKEN_powerpc64 is not removed.