Use cross-platform little-endian conversion funcs

This patch comes from Debian bug #636814
Switch to autoconf/automake to make cross platform saner
Bump version to 0.1i