Fix link errors against libgtestlib.a