Fix gtest breaking B2G build.

Port from this patch:
https://github.com/past/b2g-manifest/commit/5b090e3220ea9d1d2c72663f749fae1e7f56fba3