Add UDP support to Net::EmptyPort

See RT#83751.

I also added in the compatibility for `check_port` and `wait_port`, since it's still useful for quick UDP port checks.  Added a new test file, which passes on both Windows 7 and Debian Linux.  (The rest of the test platform isn't working on Windows, but that's another issue.)