Cleanup #4

By turning on more compiler warnings, some soft parts of the client were discovered and hardened.