Fixed bug on Windows that causes minimized window to save wrong size.
Added icon used in application tray on Windows and Linux.