Debug diagnostic and test improved

Change-Id: Ieb855a727fb8c2fafe101957f6b81e7f30dc36d3
t/*_io.t examines possibility of using gethostbyname( 'localhost' )

Change-Id: I25171e64be494016a77b2d70128b3ca663ee26cc