Fix issue with autogen.sh on MacOS