patch applied (cabal): Define bracketOnError in compat; fixes the build for GHC 6.4