Detect endian without relying on defined symbols.