Eliminate custom refcount class in favor of c++11 mechanisms