tcpflow: fix build on Snow Leopard

* use newer sqlite on older os x
* upstream patch for 10.6

Closes #25676.