Lua: switch to dynamic library linking (currently Linux only, Windows soon to come)