Various extensions, helper and functions for cocos2d-x