CApiFFI does not account for const qualifier
## Summary
The c code generated when using capi does not cast a const pointer to a normal pointer.
When compiled, the following error is raised:
`return discards ‘const’ qualifier from pointer target type`
In my test, the code still runs, but as far as I know in c there isn't an implicit conversion from const-qualified pointer types to non-const-qualified ones. So does ghc falls back to ccall?
## Environment
* GHC version used: 9.2.2
* Operating System: Archlinux 5.18.16-arch1-1
* System Architecture: x86_64
issue