examples/simple: Fix issues located by vet.