Build PCRE only with static libraries (copied and modified from omnibus-software)