Fixing cursor example build.

Enabled warnings in the Makefile.am and fixed them.