Shutdown read side of socket to make client shutdown quicker
Change link order for thread library

Without this change, libtelldus-core would not be linked with pthreads and
building tdtool would fail as the required library pthreads was not included in
the link.