Added some protection to building when USE_LUA isn't defined.