Improves endian detection

Do not assume little endian when detection fail, add more detections.
Fixes #71