Thread abstraction
The first commit encapsulates the threading code into wget_ functionality (libwget/thread.c).
The second commit switches from direct pthread usage to glthread (gnulib threads). This allows thread usage on certain systems that do not have pthreads, like Solaris and Windows.
Edited by Tim Rühsen