use AM_PROG_CC_C_O in configure.ac

Worked for me before, but looks like travis requires this.