Use Gnulib module "regex", to fix linking on Mingw.