Added AM_PROG_AR to configure.ac and added headers to Makefile.am so that make distcheck works