Fix compile error for Lua
Merge branch 'v3' of https://github.com/cocos2d/cocos2d-x into dev_compile_error
Merge pull request #6394 from samuele3hu/dev_compile_error

Fix compile error for Lua