Use AM_PROG_CC_C_O and handle generated compile script