China to loan US$500 million to shore up Pakistan