Replaced #else with explicit define logic for BIG_ENDIAN on OSX