Fixed some warnings in the demo app.