Fix some of compilation warnings.