build: add Mac-Specific hack to configure.ac.