do not create unique_ptr when returning a shared one
do not create unique_ptr when returning a shared one

This fixes issue with apparently non-RVO compliant gcc < 5 (Centos 7)
that arose after removing the std::move in the return.

meganz/sdk,meganz/sdk,meganz/sdk,meganz/sdk,meganz/sdk,meganz/sdk,meganz/sdk