More access modifier fixes to run the samples.