Fix build failure for systems with a non-64-bit time_t.

On my system (Linux i686), `time_t` is 32 bits long, which causes a compile error as it is returned (through a call to `time`) as an `i64`. A cast fixes this.