fix endianness detection with clang on osx 10.9
fall back to the cpu branch if no endianness defines are found
reorder endianness checks
Merge pull request #4850 from notsimon/osx_endianness

BLD: fix endianness detection from endian.h with clang on osx 10.9