fix debug tests
Remove custom re2 ldflags

Review 621 by @mlucy
Merge branch 'next' into sam_939