using mkstemp instead of tmpnam.
Upgraded GTest.