dev-haskell/hsqml: fix linking and add a workaround for ghc-7.6 + cabal-1.18

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>