Changed to static compilation. It assumes the required components (zlib, libpng) are added as targets before (see the corresponding repositories in this account).