Fix c-scanner regex pattern
Fix infinite loops in regex.replace

  see: https://svn.boost.org/trac/boost/ticket/7176
Check BJAM_NO_MEM_CACHE switch