AM_INIT_AUTOMAKE() and AM_PROG_AR

Edit AM_INIT_AUTOMAKE and AM_PROG_AR since older versions work one way,
but newer versions expect updated code.