Remove deprecation warnings

This pull-request removes deprecations warnings on clang. It also upgrades the .gitignore file.