Pass -fwarn-{implicit-prelude,missing-import-lists} to GCC only with -fpedantic

It may get quite annoying to use these warning flags during normal
development since GHCi (invoked using "cabal repl") uses them too.