reduce includes and check HAVE_xxx
enable to work without pcre