fix issues found by coverity
note autoreconf version
close (and log) in dynlib lookup failure case
Test value in jsonWriteNode() before strlen() call