Update examples

Nothing interesting here, just making them compile and getting rid of warnings.