Remove unused endianness check

All it did was to set WORDS_BIGENDIAN if successful
but we don't use that anywhere in the code.
Merge pull request #1584 from rubenk/remove-unused-check

Remove unused endianness check