Adding AR LIB and a autogen script shamelessly pulled from lighttpd