fix linux linker error
Merge pull request #9166 from andyque/fixLinuxLinkError

fix linux linker error
Merge branch 'v3' of https://github.com/2youyouo2/cocos2d-x into v3
add file to mac project