Changed "#if NGX_PCRE" to if(hasRegex) (hasRegex in header)