Add fallback implementation of mkstemps.
Fix a warning.