Darwin: honour `CMAKE_OSX_SYSROOT` more faithfully
The libraries in the SDK should be given precedence over the system
libraries. Check for the default library search path (in default order)
of /usr/lib
and /usr/local/lib
and use these as system prefix paths
for libraries when performing the link step against a specified SDK.
Topic-rename: macos-sdk-libraries
Edited by Brad King