TS-1731 fix Lua plugin compile on Ubuntu 12.10

...among other platforms.