Round 2 clang fixes.

Updates the rest of the make-based builds like the previous request and makes them build cleanly* with clang 3.3 r179014. Plus the rest of the things dug up by the analyzer (nothing dramatic).


\*except the CGDisplay\* deprecation warnings in procfs