Use autotools

Added autotools to generate a library, pkg-config and other minor checks.

There is still work needed to cleanup the 'interface' right now the installed headers contains a splattering of things which might not need to be exposed to the end user.