Use Poco::TemporaryFile instead of tmpnam to create filename

tmpnam seems to have problems on some windows systems and the Poco
class has the added bonus of automatic clear up.
Refs #8365