I'm both the release manager for luasocket right now and the Arch Linux packager for it. If there is a problem upstream on the luasocket side I'd be happy to look into it, but it doesn't sound like ...
I have a custom one line change in #1138 that puts ?.lib at the front of the search path for the builtin build system when building using the mingw configuration. I've confirmed that the cfg.lua file ...