China's Xi pledges to build 'modern socialist country'