Fix compiler warnings generated when compiling with -Wall flag.

These commits resolve all of the warnings which were generated when compiling the current library with the `-Wall` flag passed to `avr-gcc`.  One of them also has the nice side effect of shaving 42 bytes off the compiled program size when building for the Arduino Uno.