Applied patches from https://github.com/troydm/putty-modified/

Conflicts:
	terminal.c
	version.c
	windows/window.c