Add configure.ac and Makefile.am and make them work