TS-2723: add new features to ts_lua plugin
TS-2723: fix build problem for ts-lua
TS-2723: more fixes for building ts_lua