Replace CAPI imports with known constants to get back GHCi.