enabled the use of the config settings to determine the listening address, port, and protocol.
added a static lib to the makefile.