More warning fixes, switches and printfs, etc.

This time ones not reported by Visual Studio.