fixed crash on 32-bit OS with 64-bit time_t.