Fixed warning when SOCKET_ERROR is already defined.
Avoid redeclaration for mingw compiler