add pthreads to copyright and hack around EAGAIN in anetWrite() to let jQuery come across