Fixed numerous warnings produced by older versions of gcc (specifically,
gcc (GCC) 4.1.2 20080704).