metadata manager: use gdatetime and guint64

this should fix problems related to how time_t is defined on win32