Exco Resources Nears Deal to Stave Off Bankruptcy