Cocoa: Fix install name for installed dylib
The install name was incorrectly set to a relative path.
This change leaves the install name of the installed dylib as
@rpath/soname. Those who wish to override this can set the
CMAKE_INSTALL_NAME_DIR variable.
Closes #1504.
(cherry picked from commit 384ff74a4645347bbc5726fc572138b38f87ae8b)