Fix build without Lua

Broken since 051f0aaa9e4c826d5c1b9283a61eb81e9f975d20.
Merge pull request #1210 from zeha/f/fix-no-lua

Fix build without Lua