QPID-4558: Fix string iterator being dereferenced 1 beyond end().
Abstract away the regex functionality into a tr1 like regex class
(complete with dummy regex grammar selection flag)
Merge Windows fixes.