Unix compatibility

Added zlib 1.2.7, linux dedicated server compiling and working well.
Minor changes to make the code compilable under gcc/g++.