Use gmtime() instead of gmtime_t()

The latter is not available on Windows