applied needed patches from ghc-ios