test: optionally set common.PORT via env variable

This is a back-port of commit 17a8126 from the master branch.
test: make simple/test-dgram-pingpong respect PORT

Don't use hard-coded port numbers, use common.PORT instead.

Should fix the occasional Jenkins failure; the builds run in parallel.
Merge remote-tracking branch 'upstream/v0.8' into vs2012