Store compiler properties in a key-value map instead of repeatedly invoking `ghc --info` 

Fixes #1442.