mod: use G_Printf in the lua module
mod: remove hack for Lua 5.2, add hack for 5.1