TS-2335: some more fixes for compile warning for ts_lua plugin