Fix warnings in Lua deprecated variables