Lua and C++ compiles for linux
Merge pull request #6543 from ricardoquesada/template_fixes

Lua and C++ compiles for linux