build: fix or suppress warnings

- activated "treat warnings as errors"
Please don't move stuff around just for readability, this makes it harder to `git blame` stuff.