changes to allow for setting max udp buffer size win and nix compatible.