Fix erlang build to allow a dynamic version of libpcre to coexist.