Fix warnings in examples building