This is pretty much the same issue as [luasocket has](https://github.com/diegonehab/luasocket/issues/302). MinGWs `ws2tcpip.h` now defines `socklen_t` since the last version, causing an error when Luarocks tries to compile the `.c` files when installing luasec.