Fix prototypes for threaded servers