Update to build with autotools

Closes #1