Clean up compile warnings and default to -Wall.

Hopefully this will make introducing new bugs more obvious.