Allow shared gtest library.
Merge pull request #232 from layus/feature/build/gtest_lib

Allow usage of a shared gtest library