if glib does not have regex support, try libpcre
Merge pull request #548 from oetiker/pcre-fallback

if glib does not have regex support, try libpcre