Let's change this tmp to a long..
Fixed the zombie problem in the hooks

I never actually confirmed the zombie problem with the hooks in watchpuppy,
but as it had the same code as redigo (which had massive zombie problems)
I thought it would be wise to 'fix' it in here as well. Only downside is
that we now require pthreads.