Update Cocos to build with C++11.