cast mkdtemp return value--should define _BSD_SOURCE instead