Fix many warnings (Eclipse 4.2/Juno based)

Just a range of warning fixes: reduces number of warnings from 39 to 14 based on, I think, default Eclipse 4.2/Juno settings