The easiest way to install dependencies is using the luarocks tool.

Rocks:
luaexpat
luasocket
lbase64

Non-rocks:
LuaSec for SSL connections