Fixed used of mkstemp under Windows