Quicker exit

Fix build failure when building tdtool (libtelldus-core was not linked with pthreads) and make all client applications using libtelldus-core exit with the extra delay of up to one second.