Resolve all outstanding gcc -Wall warnings