[ioninja] bugfixes: sockets, SSH
[ioninja] bugfixes: sockets, SSH

posix socket used incorrect error code for asynchronous connect; SSH
channel was reporting incorrect event after TCP connect completed;
include --debug flag for ioninja-server process on linux if NDEBUG flag
is not set

vovkos/axl,vovkos/axl,vovkos/axl,vovkos/axl