Changes to support temp file creation other than with mktemp (eg for AIX)