gtest compiles, but segfaults