fix cpp template compile
fix lua win32 template compile error
fix lua runtime compile error
Merge pull request #8051 from andyque/fixWin32Template

Fix win32 template