Don't use -dylib-install-name on OS X with GHC > 7.8.

Fixes #1660.