Don't compile server examples if threads are disabled.
Missing header for calling time() in server.c.