Fixed problem introduced in last commit (value of content-length header was wrong).
Added a second version of the kqueueserver2 that creates the kqueues after starting the pthread.