Clean up the C code
Some patches to make `python setup.py build` produce less noise. Compiled with GCC 4.6.3 and Clang 3.0; all tests pass.

This is great, thanks so much (merged/rebased these commits)
