example.c: fix build errors introduced by #4

My bad for not checking this.