I ran into the socket.core issue on windows, but that was because the luarocks is broken on windows - it tries to use cygwin paths (unix-style) even when it's compiled for native windows, therefore it can't load the socket.core DLL.
Is there any way you can install lua 5.1 on your system? That should fix the issue.
*or*, what if you remove Lua from MCS sources altogether and add a "-llua" linker switch to the makefile? I suppose that should compile MCS with your system's Lua libraries. Not sure if there's any compatibility issues between Lua 5.1 and 5.2 though.
Is there any way you can install lua 5.1 on your system? That should fix the issue.
*or*, what if you remove Lua from MCS sources altogether and add a "-llua" linker switch to the makefile? I suppose that should compile MCS with your system's Lua libraries. Not sure if there's any compatibility issues between Lua 5.1 and 5.2 though.