Add AM_PROG_AR to support automake > 1.12

Automake > 1.12 needs the macro AM_PROG_AR to support some archives in
the project.

Signed-off-by: Denis A. Altoé Falqueto <denisfalqueto@gmail.com>