build: fix or suppress warnings

- activated "treat warnings as errors"
Definitely agree with @indutny