Started removing compilation warnings.

For now, I tried to avoid touching the code style.