use Glib::mkstemp instead of tmpnam