fix cpp template linux
Merge pull request #6801 from dabingnn/v3_fix_template

[ci skip]fix cpp template linux
Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into v3_fix