Another point is, when I do dynamical linking like: 'gcc -o sftptest sftptest.c
-lssh2' everything works fine ...
But in this case I need the statical linked version since the target box doesn't
have the libraries needed to run the binary.