Fix recv to not segfault when you dont provide a size to receive, instead actually use the length of hte buffer as documented.
Remove the need for MS_SDK_DIRECTORY when building with mingw as it has the headers and libraries included in mingw and does not need this.