Remove and update aCC/HPUX fixes. Fix regex bug report: some repeats match when they should not. Added test case.