Fixing linking errors about winsock2errno() function