refactor setup for figuring out ghc's C compiler