Add support for tempnam