Change some gmx_unique_ptr to shared_ptr in public headers