patch from ghc-ios for conditionally building ghc-pwd