fixed some showstppers for zlib, clang, apple
silenced a few warnings, more to come later