Warnings

This is a series of small fixes based on the warning reports from the compilation logs. The one marked "Minor:" are fairly trivial while you might want to check that the other two are actually what was intended in the first place.