Bug 932562 - part1: build gtest on B2G

Bug 932562 is trying to enable gtest on B2G. This patch is to build gtest by checking B2G_ENABLE_GTEST.