Fixed the compiler warnings for the demo program.