Enable system tray in MACOSX (Nick Korotysh).
Fix weird ratio values when torrent was imported or downloaded history was lost due to crash.