Add a generator rule to "generate" the gmock and gtest libraries.

This is needed to workaround the pre-stat scanning on Ninja.