mktemp w/ template, freebsd 7.1 requires it