patch applied (cabal-branches/cabal-1.2): Add -package-name to GHC invocation when linking DSOs