Use static gmock/gtest libraries.

Refs #9352