Fix switch warnings
Fix const char correctness warnings
Fix if and else ambiguous warnings
define out hdrstop
Merge pull request #1 from Pickle/32bits

Fix various warnings