Fix minor warnings.
Sync with WinSCP.
Putty: Sync with WinSCP.