Update re2 install script for mac
Fix mac build
Use reference instead of pointer
Minor code simplifications
Change mac min sdk to 10.7 to fix Release build