Repro the issue of building gtest cases as a lib