Fixed undeclared time() on Windows.