Added reliable polling on platforms with older libssh