so linking to shared libraries works well at runtime on darwin for all packages with cmake_minimum_required < 3.