compile with gcc,fix mkstemps() isn't available in
all libc impmentations.