Windows compat for setsockopt().