Fix for misc. minor compiler warnings

Here is a patch that takes care of some minor compiler warnings. No functional changes.