Create basic infrastructure to use pthread

The basic infrasturcture has been added to use multithreading on the
server side.  The thread has not yet actually been created but the
infrastructure necessary should be in place.