Make ghc deterministic (Closes: #769893)

Thanks to Niklas Hambüchen for the patch.

ghc bug tracker: https://ghc.haskell.org/trac/ghc/ticket/8144
patch from: https://github.com/nh2/ghc/commit/3d61ee6c3e79913de2400aba8cecde8dbf44fc67