tcp: fixed build errors