Fix mac build.
Make sure a variable is initialized.
Fix string buffer that was too small.
Turn temp file clean up back on.