Dynamically link to libz

libz will be a stub providing library, which means it has stable API
surface that Mainline modules can depend on. APEXes including the
runtime APEX don't need to statically link to it; it will just increase
the size of the APEX. With ag/11420260 this is even prohibited.

This change changes the static linkings to libz to dynamic linkings.

Bug: 155456180
Test: m
Change-Id: Ic6a38909241c8f851bf299130542bc323a0ff2ef
6 files changed