regex: avoid compilation failure with upcoming gcc-4.4