Packages with the threads use flag

Global definition: Add threads support for various packages. Usually pthreads.