Convert ext/pcre to HNI

Part of #1480.