Set CMAKE_INSTALL_NAME_DIR on OSX

RPATH isn't supported by CMake until 2.8.12 on OSX, so set
CMAKE_INSTALL_NAME_DIR to point to install directory.