fix release2.2 : lua template linux cannot build
Merge pull request #3796 from dabingnn/release22_bug_hot_fix

[ci skip]Release22 bug hot fix