Gtest 1.7 and test of ECC

This adds a unit test for the error correcting library and upgrades gtest to 1.7

As a side note on OSX the unit tests will not compile with -Werror because of
a warning from gtest itself.