Replace use of mkstemps with mkstemp to accomodate glibc < 2.11