Fix gtest linkage (why on earth did I link c++ with gcc??).