Minor compilation warnings removed, particularly with respect to
Windows building.


git-svn-id: svn://svn.code.sf.net/p/staden/code/staden@3523 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1
A better fix to the template X Image handling. Blinding calling
ckalloc and ckfree works for Windows, but then causes crashes on Unix
for the same reasons we had crashes on Windows when using malloc/free.

We now pick and choose which functions to use based on the OS.


git-svn-id: svn://svn.code.sf.net/p/staden/code/staden@3524 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1