patch applied (cabal-branches/cabal-1.8): Cannot apply the registering packages fix in the 1.8 branch, it changes the API