issue #2404:fixed some compiling warnings
Merge branch 'add-deprecated-header' of https://github.com/minggo/cocos2d-x into add-deprecated-header