Complete switch to autotools build system

Can close #12