Replace tmpname() by mkstemp() on non-MSVC compilers
Merge pull request #122 from miloyip/issue114tmpnam

Replace tmpname() by mkstemp() on non-MSVC compilers