win32: use emulated localtime_r in strptime