Mostly compilation fixes for wayland-book section 9.5
wayland-book: move static keyword to please -Wold-style-declaration
Fix two issues with the example code in ch. 9.5
You can also use your local clone with git send-email.