Handle temporary files in a safe way
See http://bugs.debian.org/500611.
Edited by Rémi Verschelde rverschelde@gmail.com to fix Windows support, with safe behaviour on MinGW and unsafe behaviour on MSVC. Thanks to Fabian Greffrath fabian@debian.org for the advice.
Fixes #19 (closed).
Edited by Rémi Verschelde