fixes some issues with passing extra PCRE_xxx options to search()/match()