Use WORDS_BIGENDIAN correctly.

On Mac OS X universal builds we can't rely on WORDS_LITTLEENDIAN.
So use a different mechanism to ensure WORDS_BIGENDIAN is set.