Various Cocos2d-x extensions