Fixes for various gcc 4.8 compiler warnings

This fixes a bunch of "potentially uninitialized variable" warnings with gcc 4.8, greatly improving compiler output clarity, but its effect on code clarity is more debatable.