httpd using libthread