linking with rpath
Until now, we have relied on the LD_LIBRARY_PATH environment variable to find shared objects. However, on macOS, another variable must be defined, namely DYLD_LIBRARY_PATH.
With the MR, instead of relying on the environment variables, we set rpaths in CMakeLists.txt.