Fix FILETIME/timespec conversion functions