Clean up C++11-related build issue.
Fix Socket::SetBlocking to allow setting blocking mode on on unix platforms.
Clean up build warnings.