Fixed wrong byte order on big endian platforms (e.g. powerpc).
Added platform specific endian.h wrapper.
Merge pull request #28 from manni83/byte_order

Fixed wrong byte order on big endian platforms (e.g. powerpc).