Fixed all warnings for examples.