ghc-7.8.3: move buildMK definition out of derivation