Some warning fixes for samples