Fix gtest on BSD make