Fix warnings in examples