fixed linking with threading library when using C++11 threads; addresses issue eudaq/eudaq#7