added AM_PROG_CC_C_O to configure.ac, and added autogen_mac that is friendly to homebrew. note automake is set to 1.11 for homebrew