TS-1731: better lua build fix