add -threaded to cabal file
Changing diagrams dependencies a bit.