OpenFOAM, replaced boost::weak_ptr by boost::shared_ptr, error persists