Changes to support gtest target builds.