build system: update for -Werror build.