Provide zlib version explicit on Linux.

- workaround for Gentoo (#987),
- also, it's a good practice to provide ABI version in calls to dlopen,
so if zlib ever changes ABI, wrappers won't break siliently.
Merge pull request #999 from zielmicha/zlib_abi_version

Provide zlib version explicitly on Linux.