Fix undefined references with --disable-shared.

* Fixes undefined pthread references exposed with slibtool.
* Adds --enable-tools for the client tools.

Signed-off-by: orbea <orbea@riseup.net>
3 jobs for !303 with threads in 40 minutes and 45 seconds (queued for 51 minutes and 3 seconds)
latest merge request