Next round of Wall fixes for both ICC & GCC. build_all still works fine in all configs.

Fixed all sign-compare (int vs. uint) issues that I encountered in both PGTRACK/no-PGTRACK and ICC/GCC builds.
Remove lots of dead assignents (variables that were set but never used).

TODO: Prepare final patch for Vitalis review that allows us to build gbatch + openmp with gcc.