Fixed boost memory deallocation exception using make_shared