added option to use static pcre library