Updated examples to 3.0.0 API changes. Updated CMake file to build
automatically with 3.0.0 client.