Automatically enable version-dependent GHC flags