Fix shared library building on ELF systems.
Fix broken autoconf tests.
Merge branch 'osx/main' of https://github.com/landonf/macpkg into osx/main