QPID-4793: Change test so that regex.h works on other unixes

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1477822 13f79535-47bb-0310-9956-ffa450edef68