Fix mktemp issue. Needs an arguement on FreeBSD.