A C++ Threading setup for Linux