TS-2723: Some more build fixes for ts_lua