Add threadpool support to Asterisk.