ghc: fix building with Xcode 5

Closes #22674.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>