Use os.path for path construction. Fix gtest linking