Fix build: make ptr fields public.