Fix time_t cast on i386 platform.

For i386 platform we need explicit conversion from int64_t to time_t.