patch applied (cabal): Fix local inplace registration for ghc-6.12