Updated examples to reflect latest C++11 changes