Fix build of persistent-postgresql and persistent-sqlite

This was broken by b1ae9340c7a2acbdb6d947ad4767b844dfd79a1e

Maybe -mysql needs a fix too, but I'll add another ticket for that since it had issues with Cabal 1.18 too.