Add missing include of time.h.