some corrections to zlib version (still not working)
add linker flags for shared-memory parallel ways