Created regular g++ compatibility (locking-based shared_ptr)