Required dependencies and link order:
lua51
luaexpat
expat
gdi32
psapi
net
ws2_32

Lua 5.1 with LuaCoco is highly recommended. You can download Lua 5.1 
with Coco straight from http://www.solarstrike.net/downloads.php
or download Lua 5.1 from www.lua.org and Coco from coco.luajit.org.

Lua (http://www.lua.org)
LuaExpat (http://www.keplerproject.org/luaexpat/)
libnet (http://libnet.sourceforge.net/)