fix more compiler warnings

Here are a few more fixes.
What compiler flags are you using right now ?
-Wundef is of no use for Wget - there are 'undefines' by purpose.
-some 'unreachable-code' warnings should not be fixed, e.g. in a switch an abort(); break; combination is what we call 'defensive programming'. It is done by purpose.