fixed linux linker issue for gtest.