modify configure.ac to ensure compatibility with OS X