add missed CC_DLL for cocos2dVersion function
Merge pull request #7731 from dabingnn/v3_add_CC_DLL_For_cocos2dVersion

add missed CC_DLL for cocos2dVersion function