Merge pull request #9040 from ricardoquesada/warnings_fixes

fixes some compiler warnings
How to contribute to cocos2d-x
Merge pull request #9042 from ricardoquesada/contribute

How to contribute to cocos2d-x