Define AM_PROG_AR before LT_INIT in configure.ac.

See similar patch contributed by Horváth Balázs <q@qroa.ch> in libspiro.

Also removed TABs in buildnameslist.c