Changed the configure script and Makefile for Windows so that: 1) it attempts to build a single executable, rather than a library and an executable as in the original Makefile, 2) it uses the -static and -mconsole options, and 3) the dependency on 'gd' is dropped (it was only used in some extensions that drew graphical output).