Compile re2 on osx with libc++

Closes #989
Review OTS by @coffeemug