make ptr::is_compat<> static, to fix obscure compilation errs
fix usage of references on functions to avoid special case for void(*)()
tcp port is uint16_t
throw informative exception on bad port number
fix logfile configuration