Merge "Move use of tempnam to mkstemp."