Fix ncurses detection for Fedora
Fix outstaning Coverity bugs

--HG--
branch : release-2.x.y
Silence a result_independent_of_operands coverity false positive

--HG--
branch : release-2.x.y
Merge release-2.x.y
Backport better zephyr coverity fix from default

--HG--
branch : release-2.x.y
Fix a coverity typo

--HG--
branch : release-2.x.y
Merge release-2.x.y
Fix warnings
Coverity bug is now a false positive

--HG--
branch : release-2.x.y
Merge release-2.x.y
Coverity: fix a file descriptor leak
Coverity: fix null pointer dereferences
Fix CWE-252 coverity issues
Coverity: missing break in tcl plugin
Fix coverity dead code warnings
Fix a typo
Fix purple_hash_digest_to_str returned types
Imgupload: initial implementation and basic hooks
Remove redundant OPT_PROTO_IM_IMAGE (use \!PURPLE_CONNECTION_FLAG_NO_IMAGES instead)
Imgupload: fix basic hooks