Fix MakeAddress and move it out of extern "C".
Comment out bind() and friends, as it may not be necessary.

Also clean out some old commented debug code.