fix UDP improvement for Windows