This patch shouldn't be need if you use the system libs. Try to delete the zlib123 subdir and make it build.