Server switched from fork() to pthreads.

Needed this to share global vars.