Minor net_udp.c cleanup.
Disable curses for Windows build.