Make sure integral data types are always written in big endian byte
order.
Use better floating-point handling for cross-platform support.