minor bug fix

minor bug fix to cocos2dx related cpp, header