Fix build issue on Windows with types to setsockopt(). #4122