Add -g when building tools to make stack traces readable.
Fix implicit case fallthrough and duplicate semicolon statement warnings.
Merge pull request #1 from AndrejMitrovic/FixBuild

Fix build with 2.066 and a runtime fix