Build as C instead of C++

I've modified the code to comply to ISO C90 (a.k.a C89 or ANSI C). This eliminates a number of C++-specific header includes, C/C++ syntax incompatibilities, etc.

I've also added a Makefile to make it easy to build the demo binary on systems with GNU make and GCC (Linux, Mac OS X, etc).