Allow building LuaD as a shared library

Off by default, enable with LIB=shared