It looks to me like Daniel identified the problem. Based on his
report, the problem is with the construction of pcre.so -- it sounds
like this is a file that zsh creates? The problem is it depends on
libpcre.a instead of libpcre.so. If you change that, it should fix
the problems you were seeing.
I don't see any indication there's a problem with libpcre and its
setup. I think it's just a matter of changing the build rule for
zsh. Does this make sense to you?