Remove the dependency on pthreads, and move dispatching to a separate translation unit

git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@663 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7