Support endian detection for clang and other compilers that define __*_ENDIAN__
Add autogen.sh
update .gitignore