Fix most of compilation warnings.