Fix mktemp usage

mktemp(1) needs template argument on FreeBSD.