Fix Tilde compilation under Lua 5.2

Not all paths have been tested, but a good portion of it works now.
Remove unneeded lua_getvararg from lua52-luaplus

lua_getlocal works great!
lua52-luaplus: Add Tilde debugger support to the Lua executable
lua52-luaplus: Support lua.link