shake-install: bug fixes for ghc 7.8