Cleared some warnings

Found a few warnings and compiler issues.  These are now fixed.