lib: improvements
tcp: fix ack/seq handling