mkstemp: avoid conflict with C++ keyword template