check for failed external symbol lookups (partial fix for #5748)
check for failed external symbol lookups (partial fix for #5748)

ilyasergey/GHC-XAppFix,ilyasergey/GHC-XAppFix,ilyasergey/GHC-XAppFix,ilyasergey/GHC-XAppFix