Fix RPATH warning on MacOS systems.

latest commit 6bc0d49dfa
@githaff authored