Enable compiler warnings for the examples
Fix compiler warnings in the examples