enhance portability (replace void* by char*)
When using void pointers in calculations, the behaviour is undefined. Arithmetic operations on 'void *' is a GNU C extension, which defines the 'sizeof(void)' to be 1.
fix missed inflateEnd call and enhance handling inflate return value
Merge branch 'master' of https://github.com/antma/tg

Conflicts:
	tools.c