Fixes a few warnings and depracations

4 jobs for warnings-and-deprecations in 8 minutes and 3 seconds