Cabal handles RPATHs on supported platform.

Before, RPATH handling was left to GHC. But this causes problems
when a package contains both a Library section and an Executable
section which depends on the library, and the executable is
dynamically linked. See e.g. #1568