Fix build without Lua

Broken since 051f0aaa9e4c826d5c1b9283a61eb81e9f975d20.