Merge pull request #9218 from vovkasm/cmake-linux-mac-fixes

Cmake linux mac fixes
[AUTO][ci skip]: updating cocos2dx_files.json
Merge pull request #9233 from CocosRobot/update_cocosfiles_1416926893

[AUTO][ci skip]: updating cocos2dx_files.json
Fixes in async test

code is cleaner
Merge pull request #9235 from ricardoquesada/async_fixes_test

Fixes in async test