Update .gitignore.
Search for liphlpapi on win32.
Use int instead of socklen_t on win32.