Create workingThread.h

Moved threadGraveyard declaration/definition and condition::wait() definition up a bit so that thread_cancel() could be called where pthread_exit() used to be called.