Ported to libc++.

Tests cannot be built for now.
Gtest 1.6.0 does not support libc++.