build: fix or suppress warnings

- activated "treat warnings as errors"
Please add some comment with explanation here.