Made the C++ code compile in release mode on OS X.
Relpaced build_handlebars_templates.sh with the more portable build_handlebars_templates.py.
Merge branch 'sam_osxbuild' into sam_gtest