Adding AR LIB and a autogen script shamelessly pulled from lighttpd

I had trouble compiling CTAP, turns out autotools need ar lib.