Added include of ctime to fix compilation on centos.