zlib: more cmake fixes

Use _debug postfix on Mac OS X for debug library.
Use d postfix on Windows for debug library.
On windows install also pdb files when MSVC and debug configuration.
Strip lib prefix for shared library on Windows.
For static library always use lib prefix and don't use version in
name.