Avoid using newly-deprecated Winsock functions.