Added support for non-C++11 compatible compilers, such as gcc 4.8, when it comes to lack of support for atomic operations on shared_ptr's.