Changed internal pointer to a shared_ptr<CLevmar> to facilitiate bootstrapping.