This is an attempt to reduce the number of warnings reported by the compiler. The first two patches also improve the code, the other ones just make gcc silent about some non-issues. Andrea