logging cleanup (Mac OS X) and correction of a bug where the Ask[Save]FileName functions returned a pointer to freed memory (OS X)