fixes #3702 failed to build on cocos2dx.
Merge pull request #38 from chengstory/Bug#3702

fixes #3702 failed to build on cocos2dx.