Update gtest to version 1.7.0 and fix xcode build errors.
Add CMake and travis configuration files for automated builds.