zlib: Make sure all .so files are part of run time dependencies.

The old code omitted .so without a numbered suffix, which would make
it a build time dependency instead of run time dependency.
(cherry picked from commit 72ed4e0a0fb10ee89a47b5ed4a106576c5179299)