Corrected a 64-bit compile error, added more IP address tests,
fixed a problem when converting an address to a string with an
optional port number.
Fixed access of threads on 64-bit machine.
Added ability to convert string to port number. Fixed issues with
displaying the log levels in the program usage help.