patch applied (cabal): fix scope errors in non-GHC branch of an #ifdef