Use more portable endinaness macros to check architecture.
Standardize names for functions.
Build with GNU89 standard for greater compatibility.