change AM_CONFIG_HEADER to AC_CONFIG_HEADERS

This is needed for OSX and I think fixes a spew on others
Merge pull request #770 from ptarjan/fix_cmake_patch

Fix cmake patch