Fix re2 build error on OS X

Review 1209 by @Tryneus