Fixing an issue with the use of closesocket on non Windows programs (defining closesocket in sockets/common.h)