title: add luasocket to program (bizhawk) shipped with own lua environment
body: <p>I am trying to get luasocket working in the lua scripting environment of <a href="http://tasvideos.org/BizHawk.html" rel="nofollow">Bizhawk</a>, but so far without luck. I downloaded the vc8 version of luasocket <a href="http://files.luaforge.net/releases/luasocket/luasocket/luasocket-2.0.2" rel="nofollow">here</a>, made sure I have vc8 installed, and checked the lua version that came with bizhawk: 5.1</p>
  
  <p>But, when I start the script I get the following error:</p>
  
  <pre><code>LuaInterface.LuaScriptException: error loading module 'socket.core' from file './libs/socket\core.dll':
      Das angegebene Modul wurde nicht gefunden. (the given module was not found)
  </code></pre>
  
  <p>The lua code:</p>
  
  <pre><code>package.path = package.path..';./libs/lua/?.lua'
  package.cpath = package.cpath..';./libs/?.dll'
  local socket = require("socket")
  </code></pre>
  
  <p>The file system structure:</p>
  
  <pre><code>libs
     &gt; lua
         &gt; socket
              ftp.lua http.lua smtp.lua tp.lua url.lua
         ltn12.lua
         mime.lua
         socket.lua
     &gt; socket
         core.dll
     &gt; mime
         core.dll
  </code></pre>
  
  <p>It seems to find the files, because when I had the file structure wrong it gave me actual file-not-found errors.
  My best guess is that there is some kind if incompatibility between the lua that is shipped with Bizhawk and the external luasocket library binaries, but I am out of ideas.</p>