patch applied (cabal-branches/cabal-1.2): Add extra-libs to shared library linking