Fixes Cocos2d-x 3.0rc0 deprecations.