Adding check for pthreads library.  Windows *must* use pthreads-win32.
Removing curl/types.h, file is empty.
Adding index funtion for win32 builds.  This is only included in linux/OS X string.h
Moving variable declarations to the heads of functions.