lua, monitor: Fixed compiler warnings