It was more like irony, Mao also thanked Chiang who killed his some of his family members and he thanked America who killed his son. If you read history, Mao insisted on fighting against the Japanese invaders before Chang did. Do not forget KMT had America assistance in civil war, but they lost, because they were just too messy with economies and care too little about 90% of Chinese poor people.