GNU mktemp and BSD mktemp compatibility