Added /opt/local to SYS_PREFIX (needed for MacPorts)
Specified incdir and quit if pcre.h not found
Needed to make buffer_init static