Depress warning of deprecated tmpnam function for clang and GCC.