Added checks for libpcre