WIP: Fix linking on macosx12
Somehow the dynamic linker on macosx 12 has changed. It now needs to resolve all symbols when loading a library such that all dependent libraries needs to be passed explicitly already when linking a new library. Before the linker was able to resolve such symbols if the needed library was in the library search path needed library was in the library search path.