Fix warnings in ghc-prim modules