fixes for ghc-7.6 in core and graph