Use std::make_shared to convert to shared_ptr.

Faster and also works around http://llvm.org/bugs/show_bug.cgi?id=18843 on Mac.