ghc: fix with Xcode 5.

Closes #21960.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>