Mac build fix after merging https://github.com/cocos2d/cocos2d-x/pull/5989

Mac build fix after merging https://github.com/cocos2d/cocos2d-x/pull/5989