win32 mkstemp implementation