Got cookie to compile by switching to posix calls for time string