Add support for weak framework linking (Apple)
Add some option to link a framework weakly, ie -weak_framework instead of -framework. See: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html#//apple_ref/doc/uid/20002378-106633