avoid warnings if ssl hostname verification is disabled
code cleanup
fixed memory leak in livestatus accessor
added optional leak check