South Africa commits to helping fight climate change