moved utility functions to tmx_utils.c
zlib decompression done and tested (mostly a copy of the code from libtiled)