remove unneeded \n in SysError() calls.
use TSystem::TempFileName(), which uses mkstemp(), instead of tmpnam().

tmpnam() was causing deprecation warnings on OSX 10.9.