porting from github.com/mmckinst/php53u-pecl-ssh2