more portable le64toh()

Instead of checking OS platforms, it directly asks cpp for the endianness.  That way the code should be more portable.  Worked not only for OS X, FreeBSD and Linux but also Windows.

Dan