Add ELF endianness detection, now supports big endian ELFs as well