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

...and fixes some issues on Xcode team
Merge pull request #50 from ricardoquesada/xcode_issues

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