Add -Wextra and fix warnings
This adds more build warnings. It also disables deprecation warnings for now, as they were flooding the output so much, that we missed the introduced new warnings (ce3897ad).
The warning fixing commits are probably a bit opinionated, so if desired I'll gladly split out the first 2-3 commits into a separate MR.