build: fix or suppress warnings

- activated "treat warnings as errors"
This is good after fixing the warnings.