Removed unused mkstemp on Windows, use tmpnam_s on Windows, now always set @path.
Updated changes for 1.2.1.