Qt UI: use thread specific code for ignoring SIGPIPE on POSIX systems
Gtk UI: ignore SIGPIPE on POSIX systems

Fix problem with SSL_write()