fixed undefined reference if pcre is disabled