Add standard -g flag to specify GHC options

The '-g' flag is implemented in various haskell utilities to accept GHC options and pass them to GHC utilities (ghc, ghc-pkg).
This request implements the '-g' flag, and filters '--package-db' options in the cabal query.