Use the system PCRE library on Mac OS X.

Mac OS X includes the PCRE library but not the header file. We can
supply the header file ourselves in order to use the system libpcre.
Clang doesn't have a -pthread command-line argument.
Fix some compiler warnings from Clang.

Most are unused class data members.