updates to latest cocos2d-x version (v3.1)

...and fixes some issues on Xcode team