OS X endian compatibility.