Try to fix tre/unordered_set issue.

Copying hackery from Google RE2 Mercurial source
for their solution.