Fix some compilation warnings
Merge pull request #1825 from hardening/compil_warnings

Fix some compilation warnings