Add automake/autoconf source files

Also add examples.
Avoid casting arbitrary values to an enum

The enum only contains the constant values 0, 1 and 2. This produces
the warning "comparison of constant 6 with expression of type
'PS_RESOLUTION' is always false" in clang for the first check
in the getNoBands function (but apparently not for the second one
even though mode>=3 shouldn't ever happen for a valid PS_RESOLUTION
value either). This could allow the compiler to completely remove
the conditions that shouldn't be able to occur even though they
actually are used and are necessary.

By passing the value as UINT instead, it is clear to the compiler
that all the checks are necessary.
Include the encoder library version in the publicly installed header

This allows callers to conditionally use new API features without
breaking compatibility with the earlier versions of the library.
Fix PowerPC Mac build
Make LONG 32 bits for ppc64 as it is for x86_64
Add ppc optimization for clz and fixmul

Optimize ppc/ppc64 similar to i386/x86_64, approximately doubling
encoding speed on a Power Mac G5 running OS X 10.5.8.
Fix AIX build

Fix AIX build failure with IBM xlC compiler due to conflicting
definition of M_PI.  The libSYS/include/genericStds.h definition is
guarded with #ifndef M_PI, but was included before <math.h> which
defines M_PI with more significant digits.