Updated to work with cocos2d-2.1beta3-x-2.1.1