Support for Mavericks.
Replaced CocoaDialog with version 3.
Misc fixes.