Remove some more compiler warnings.

Should not be pulled as-is, but serve as discussion base and request for comments.
The three last commits using GCC pragmas to disable specific -W... should probably not be pulled, but solved a more elegent way if possible.