Made Lua compila as a standalone DLL on Windows.

This enables us to use LuaRocks.
Allowed Linux builds to use LuaRocks.

This works by exporting all the symbols for the dynamic loader so that LuaRocks' shared libraries may bind to them on load. Also allowed lua's dlopen().