Fixing build errors in examples.