Build on FreeBSD, and hopefully others.  Fall back to using /tmp as
"secure" tmpdir.

Signed-off-by: Thomas Hurst <tom@hur.st>