fix windows build (time_t reference)